-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pkg/stanza] SplitFunc naming cleanup #26631
[pkg/stanza] SplitFunc naming cleanup #26631
Conversation
62ff0b2
to
a4ef388
Compare
@@ -26,6 +26,6 @@ func NewCustomFactory(splitFunc bufio.SplitFunc, flushPeriod time.Duration) Fact | |||
} | |||
|
|||
// Build builds Multiline Splitter struct | |||
func (f *customFactory) Build() (bufio.SplitFunc, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comments should also be updated to SplitFunc
} | ||
} | ||
|
||
// Build builds Multiline Splitter struct | ||
func (f *multilineFactory) Build() (bufio.SplitFunc, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
factory := NewMultilineFactory(tt.multilineCfg, tt.encoding, tt.maxLogSize, trim.Nop, tt.flushPeriod) | ||
got, err := factory.Build() | ||
factory := NewSplitFuncFactory(tt.splitConfig, tt.encoding, tt.maxLogSize, trim.Nop, tt.flushPeriod) | ||
got, err := factory.SplitFunc() | ||
if (err != nil) != tt.wantErr { | ||
t.Errorf("Build() error = %v, wantErr %v", err, tt.wantErr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SplitFunc() error
a4ef388
to
15ab4ad
Compare
Thanks for the review @fatsheep9146. I've updated the comments. |
Another few remaining parts of #26241. This basically follows up on renaming the
multiline
package by renaming a few remaining to "multiline" throughout the codebase.